package com.viettel.core.bussiness.report;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.viettel.core.dao.report.ReportDetailDAO;
import com.viettel.core.entities.report.vo.ReportDetailFilter;
import com.viettel.core.entities.report.vo.ReportDetailVO;
import com.viettel.core.exceptions.BusinessException;
import com.viettel.core.exceptions.DataAccessException;

public class ReportDetailMgrImpl implements ReportDetailMgr{

	@Autowired
	ReportDetailDAO reportDetailDAO;
	
	@Override
	public List<ReportDetailVO> getReportDetailText(ReportDetailFilter filter)
			throws BusinessException {
		try { 
			return  reportDetailDAO.getReportDetailText(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

	@Override
	public List<ReportDetailVO> getReportDetailSub(ReportDetailFilter filter)
			throws BusinessException {
		try { 
			return  reportDetailDAO.getReportDetailSub(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

	@Override
	public List<ReportDetailVO> getReportDetailAll(ReportDetailFilter filter)
			throws BusinessException {
		try { 
			return  reportDetailDAO.getReportDetailAll(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

}
